package com.car.shopping.service;

import com.car.shopping.controller.form.AddPRForm;
import com.car.shopping.entity.ProductReview;
import com.baomidou.mybatisplus.extension.service.IService;
import com.car.shopping.service.param.AddPRParam;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 董旭
 * @since 2024-08-28
 */
public interface ProductReviewService extends IService<ProductReview> {

    public List<ProductReview> selectPRById(Integer goodsId);

    public void addUserPR(AddPRParam param,Integer userId)throws Exception;

    public  void addAdminPR(AddPRParam param, Integer adminId)throws Exception;

    public  void deleteReviewById(Integer reviewId)throws Exception;

    public List<ProductReview> allReview()throws Exception;
}
